package com.tnovoselec.android.feed.handler.entity;

import java.util.Properties;

public class EnclosureDto extends ValidEntity {
    
    public static String keyDescription = "description";
    public static String keyThumbnail = "thumbnail";
    public static String keyThumbUrl = "thumburl";
    public static String keyTitle = "title";

    public EnclosureDto(long id) {
	super(id);
    }

    public EnclosureDto() {
	super();
    }

    private String url;
    private String title;
    private String description;
    private String thumbUrl;
    private String mimeType;
    private String relatedArticleGuid;
    private boolean thumbnail;
    private long length;

    private Properties properties = new Properties();

    public String getUrl() {
	return url;
    }

    public void setUrl(String imageUrl) {
	this.url = imageUrl;
    }

    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    public String getDescription() {
	return description;
    }

    public void setDescription(String description) {
	this.description = description;
    }

    public String getThumbUrl() {
	return thumbUrl;
    }

    public void setThumbUrl(String thumbUrl) {
	this.thumbUrl = thumbUrl;
    }

    public String getMimeType() {
	return mimeType;
    }

    public void setMimeType(String mimeType) {
	this.mimeType = mimeType;
    }

    public boolean isThumbnail() {
	return thumbnail;
    }

    public void setThumbnail(boolean thumbnail) {
	this.thumbnail = thumbnail;
    }

    public String getRelatedArticleGuid() {
	return relatedArticleGuid;
    }

    public void setRelatedArticleGuid(String relatedArticleGuid) {
	this.relatedArticleGuid = relatedArticleGuid;
    }

    public long getLength() {
	return length;
    }

    public void setLength(long length) {
	this.length = length;
    }

    public Properties getProperties() {
	return properties;
    }

    public void setProperties(Properties properties) {
	this.properties = properties;
    }

    public void setProperty(String key, String value) {
	properties.put(key, value);
    }

    public String getProperty(String key) {
	return properties.getProperty(key);
    }

    @Override
    public boolean isValid() {
	// TODO Auto-generated method stub
	return false;
    }

}
